package com.ms.game.slot.base;

import com.ms.game.slot.base.message.CSlotCommonUseGameCardRequest;
import com.ms.game.slot.base.message.SlotBasicDMMessageRequest;
import com.ms.game.slot.base.message.SlotBasicGameMessageRequest;
import com.ms.game.slot.base.message.SlotGameAsyncDoSeatDataRequest;
import com.ms.game.slot.base.message.SlotGameDoSeatVerifyRequest;
import com.ms.game.slot.base.message.SlotGameLeaveBackRequest;
import com.ms.game.slot.base.message.SlotGameLeaveRequest;
import com.xpec.c4.message.MessageTypes;
import com.xpec.c4.service.annotations.MessageType;
import com.xpec.c4.service.common.BaseMessageAction;

public class SlotGameBasicAction extends BaseMessageAction
{
	@MessageType(typeCode = MessageTypes.C_SLOT_DOSEAT_VERIFY)
	public void revDoSeatVerify(SlotBasicGameMessageRequest request)
	{
		this.getModule().getBasicprocesser().revDoSeatVerify((SlotGameDoSeatVerifyRequest)request);
	}
	
	@MessageType(typeCode = MessageTypes.S_SLOT_ASYNC_DOSEATDATA)
	public void revAsyncDoSeatData(SlotBasicDMMessageRequest request)
	{
		this.getModule().getBasicprocesser().revAsyncDoSeatData((SlotGameAsyncDoSeatDataRequest)request);
	}
	
	@MessageType(typeCode = MessageTypes.S_SLOT_LEAVEBACK)
	public void revLeaveSeatBack(SlotBasicDMMessageRequest request)
	{
		this.getModule().getBasicprocesser().revLeaveSeatBack((SlotGameLeaveBackRequest)request);
	}
	
	
	@MessageType(typeCode = MessageTypes.C_SLOT_GAMELEAVE)
	public void revGameLeave(SlotGameLeaveRequest request)
	{
		this.getModule().getBasicprocesser().revGameLeave(request);
	}
	
	/**
	 * 收到 client 使用機台卡要求</br>
	 * 這個消息，是做出來應付使用持續性的機台卡
	 * @param obj
	 */
	@MessageType(typeCode = MessageTypes.C_SLOT_COMMON_USE_GAME_CARD_REQUEST)
	public void revUseGameCardRequest(SlotBasicGameMessageRequest request){
		this.getModule().getBasicprocesser().revUseGameCardRequest((CSlotCommonUseGameCardRequest)request);
	}
}
